﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Wild2.Controllers
{
    public class NotifiesController : Controller
    {
        public ActionResult Index()
        {
            Models.Pages.Notifies.Index page = new Models.Pages.Notifies.Index();
            Int32? UserID = Wild2.Models.Auth.AuthOnSite.GetUserId();
            if (UserID.HasValue)
            {
                page.Notifies = Models.Notifies.Notifies.GetNotifies(UserID.Value);
            }
            else
            {
                return RedirectToAction("Index", "Login");
            }
            return View(page);
        }
    }
}
